<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改会员级别')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-memberlevel-edit" th:object="${whMemberlevel}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">会员级别名称：</label>
                <div class="col-sm-8">
                    <input name="levelName" th:field="*{levelName}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">所需经验：</label>
                <div class="col-sm-8">
                    <input name="needExperience" th:field="*{needExperience}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">免费领取时间间隔：</label>
                <div class="col-sm-8">
                    <input name="timeInterval" th:field="*{timeInterval}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">置顶优惠：</label>
                <div class="col-sm-8">
                    <input name="topDiscount" th:field="*{topDiscount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">任务速度：</label>
                <div class="col-sm-8">
                    <input name="taskSpeed" th:field="*{taskSpeed}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">作品刷新间隔：</label>
                <div class="col-sm-8">
                    <input name="refreshInterval" th:field="*{refreshInterval}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "whzj/memberlevel";
        $("#form-memberlevel-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-memberlevel-edit').serialize());
            }
        }
    </script>
</body>
</html>